﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace NUMIMAX.Controls
{
    /// <summary>
    /// Interaction logic for ControlOfCoin.xaml
    /// </summary>
    public partial class CoinControl : UserControl
    {
        public CoinControl()
        {
            InitializeComponent();
            Loaded += new RoutedEventHandler(CoinControl_Loaded);
        }

        void CoinControl_Loaded(object sender, RoutedEventArgs e)
        {
            //Seria
            NumerSeryjny.Content = Series;
            //Nazwy
            NazwaMonety.Content = CoinName;
            SeriaKarta.Text = CoinName;
            SeriaMagazyn.Text = CoinName;
            SeriaOpis.Text = CoinName;
            SeriaUzytkownik.Text = CoinName;
            //Obrazek
            ObrazKarta.Source = Image;
            ObrazMagazyn.Source = Image;
            ObrazOpis.Source = Image;
            ObrazUzytkownik.Source = Image;
            //DataEmisji
            RokEmisjiKarta.Text = EmissionDate;
            RokEmisjiMagazyn.Text = EmissionDate;
            RokEmisjiOpis.Text = EmissionDate;
            RokEmisjiUzytkownik.Text = EmissionDate;
            //Nominał
            NominalKarta.Text = FaceValue;
            NominalMagazyn.Text = FaceValue;
            NominalOpis.Text = FaceValue;
            NominalUzytkownik.Text = FaceValue;
            //Waluta
            WalutaKarta.Text = Currency;
            WalutaMagazyn.Text = Currency;
            WalutaOpis.Text = Currency;
            WalutaUzytkownik.Text = Currency;
            //Kraj
            KrajKarta.Text = Country;
            KrajMagazyn.Text = Country;
            KrajOpis.Text = Country;
            KrajUzytkownik.Text = Country;
            //Stempel
            StempelKarta.Text = Stamp;
            StempelMagazyn.Text = Stamp;
            StempelOpis.Text = Stamp;
            StempelUzytkownik.Text = Stamp;
            //Nakład
            NakladKarta.Text = Circulation;
            NakladMagazyn.Text = Circulation;
            NakladOpis.Text = Circulation;
            NakladUzytkownik.Text = Circulation;
            //Alloy
            StopKarta.Text = Alloy;
            StopMagazyn.Text = Alloy;
            StopOpis.Text = Alloy;
            StopUzytkownik.Text = Alloy;
            //Rant
            RantKarta.Text = Rant;
            RantMagazyn.Text = Rant;
            RantOpis.Text = Rant;
            RantUzytkownik.Text = Rant;
            //Średnica
            SrednicaKarta.Text = Diameter;
            SrednicaMagazyn.Text = Diameter;
            SrednicaOpis.Text = Diameter;
            SrednicaUzytkownik.Text = Diameter;
            //Waga
            WagaKarta.Text = Weight;
            WagaMagazyn.Text = Weight;
            WagaOpis.Text = Weight;
            WagaUzytkownik.Text = Weight;
            //Ilość
            IloscSztukKarta.Text = Quantity;
            IloscSztukMagazyn.Text = Quantity;
            IloscSztukOpis.Text = Quantity;
            //Zakup
            ZakupInewstKarta.Text = PurchaseInvest;
            ZakupInwestMagazyn.Text = PurchaseInvest;
            ZakupInwestOpis.Text = PurchaseInvest;
        }

        public string CoinName
        {
            get { return (string)GetValue(CoinNameProperty); }
            set { SetValue(CoinNameProperty, value); }
        }
        public static readonly DependencyProperty CoinNameProperty = DependencyProperty.Register("CoinName", typeof(string), typeof(CoinControl));


        public BitmapImage Image
        {
            get { return (BitmapImage)GetValue(ImageProperty); }
            set { SetValue(ImageProperty, value); }
        }
        public static readonly DependencyProperty ImageProperty = DependencyProperty.Register("Image", typeof(BitmapImage), typeof(CoinControl));

        
        public string Series
        {
            get { return (string)GetValue(SeriesProperty); }
            set { SetValue(SeriesProperty, value); }
        }
        public static readonly DependencyProperty SeriesProperty = DependencyProperty.Register("Series", typeof(string), typeof(CoinControl));


        public string EmissionDate
        {
            get { return (string)GetValue(EmissionDateProperty); }
            set { SetValue(EmissionDateProperty, value); }
        }
        public static readonly DependencyProperty EmissionDateProperty = DependencyProperty.Register("EmissionDate", typeof(string), typeof(CoinControl));


        public string FaceValue
        {
            get { return (string)GetValue(FaceValueProperty); }
            set { SetValue(FaceValueProperty, value); }
        }
        public static readonly DependencyProperty FaceValueProperty = DependencyProperty.Register("FaceValue", typeof(string), typeof(CoinControl));


        public string Currency
        {
            get { return (string)GetValue(CurrencyProperty); }
            set { SetValue(CurrencyProperty, value); }
        }
        public static readonly DependencyProperty CurrencyProperty = DependencyProperty.Register("Currency", typeof(string), typeof(CoinControl));

        public string Country
        {
            get { return (string)GetValue(CountryProperty); }
            set { SetValue(CountryProperty, value); }
        }
        public static readonly DependencyProperty CountryProperty = DependencyProperty.Register("Country", typeof(string), typeof(CoinControl));


        public string Stamp
        {
            get { return (string)GetValue(StampProperty); }
            set { SetValue(StampProperty, value); }
        }
        public static readonly DependencyProperty StampProperty = DependencyProperty.Register("Stamp", typeof(string), typeof(CoinControl));


        public string Circulation
        {
            get { return (string)GetValue(CirculationProperty); }
            set { SetValue(CirculationProperty, value); }
        }
        public static readonly DependencyProperty CirculationProperty = DependencyProperty.Register("Circulation", typeof(string), typeof(CoinControl));


        public string Alloy
        {
            get { return (string)GetValue(AlloyProperty); }
            set { SetValue(AlloyProperty, value); }
        }
        public static readonly DependencyProperty AlloyProperty = DependencyProperty.Register("Alloy", typeof(string), typeof(CoinControl));


        public string Rant
        {
            get { return (string)GetValue(RantProperty); }
            set { SetValue(RantProperty, value); }
        }
        public static readonly DependencyProperty RantProperty = DependencyProperty.Register("Rant", typeof(string), typeof(CoinControl));


        public string Diameter
        {
            get { return (string)GetValue(DiameterProperty); }
            set { SetValue(DiameterProperty, value); }
        }
        public static readonly DependencyProperty DiameterProperty = DependencyProperty.Register("Diameter", typeof(string), typeof(CoinControl));



        public string Weight
        {
            get { return (string)GetValue(WeightProperty); }
            set { SetValue(WeightProperty, value); }
        }
        public static readonly DependencyProperty WeightProperty = DependencyProperty.Register("Weight", typeof(string), typeof(CoinControl));



        public string Quantity
        {
            get { return (string)GetValue(QuantityProperty); }
            set { SetValue(QuantityProperty, value); }
        }
        public static readonly DependencyProperty QuantityProperty = DependencyProperty.Register("Quantity", typeof(string), typeof(CoinControl));



        public string PurchaseInvest
        {
            get { return (string)GetValue(PurchaseInvestProperty); }
            set { SetValue(PurchaseInvestProperty, value); }
        }
        public static readonly DependencyProperty PurchaseInvestProperty = DependencyProperty.Register("PurchaseInvest", typeof(string), typeof(CoinControl));



    }
}
